﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="userReward.aspx.cs" Inherits="lcmyjobs.Web.Admin.userReward" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>全部悬赏人才</title>
    <script src="../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="../Scripts/mybasic.js" type="text/javascript"></script>
    <link href="../Styles/Site.css" rel="stylesheet" type="text/css" />
    <link href="../css/AdminFrame.css" rel="stylesheet" type="text/css" />
    <style type="text/css">

        .tdleftmargin{ text-align:left;  padding-left:25px;}
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="rightCenter">
        <div class="rightBack">
            <div class="rightContentTop">
                <ul>
                    <li class="cur"><a href="userReward.aspx">全部悬赏人才</a> </li>
                    <li><a href="ListRewardJobs.aspx">全部悬赏职位</a> </li>
                    <li><a href="ListOfferJobs.aspx">悬赏招聘揭榜</a> </li>
                    <li><a href="offeruser.aspx">悬赏求职揭榜</a> </li>
                </ul>
            </div>
            <div class="rightContentMiddle">
             <table width="100%">
                <tr>
                    <td style=" text-align:left; font-size:12px; " class="style3">
                        <asp:Image ID="Image1" CssClass=" imgstyle" ImageUrl="../images/h_ctenter_iocn.jpg" runat="server" />&nbsp;
                      <span class="spanstyle">等待审核的悬赏人才<asp:Label ID="lbl_count" runat="server"></asp:Label>个</span>
                    </td>
                    <td style=" text-align:left">
                          
                    </td>
                </tr>
                 <tr>
                    <td colspan="2">
                     <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="rid"
                    EnableModelValidation="True" OnRowDataBound="GridView1_RowDataBound" 
                    OnRowDeleting="GridView1_RowDeleting" Width="100%" CssClass="grid" 
                    GridLines="None" onselectedindexchanged="GridView1_SelectedIndexChanged">
                    <Columns>
                        <asp:TemplateField HeaderText="编号">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                            </EditItemTemplate>
                            <HeaderTemplate>
                                <input id="Checkbox1" type="checkbox" onclick="checkall(this)" />
                                编号
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:CheckBox ID="chku" runat="server" />
                                <asp:HyperLink ID="HyperLink1" target='_blank' runat="server" NavigateUrl='<%# "showuser.aspx?id="+ Eval("uid") %>'><%# Eval("rbh") %></asp:HyperLink>
                                
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Left" CssClass="tdleftmargin"/>
                            <ItemStyle  CssClass="tdleftmargin" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="truename" HeaderText="姓名" />
                        <asp:TemplateField HeaderText="年龄&bull;最高学历&bull;工作经验">
                            <ItemTemplate>
                                <asp:Label ID="Label2" runat="server" Text='<%# Eval("age") %>'></asp:Label>岁&nbsp;&nbsp;<asp:Label ID="Label3" runat="server" Text='<%# Eval("edu_name") %>'></asp:Label>&nbsp;&nbsp;<asp:Label ID="Label4" runat="server" Text='<%# Eval("workexpname") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="reward" HeaderText="悬赏金额" DataFormatString="{0}元" />
                        <asp:BoundField DataField="rewardstatus" HeaderText="审核状态" />
                        
                        <asp:TemplateField HeaderText="有效期">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TB_valid" runat="server"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="label_valid" runat="server" 
                                            Text='<%# lcmyjobs.BLL.Tools.GetValidity(Eval("outtime").ToString()) %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                        <asp:BoundField DataField="okstatus" HeaderText="成功" />
                        <asp:BoundField DataField="wantedtime" HeaderText="注册时间" DataFormatString="{0:yyyy-MM-dd H:mm}" />
                        <asp:TemplateField ShowHeader="False" HeaderText="操作">
                            <ItemTemplate>
                                <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="false" CommandName="Delete"
                                    OnClientClick= "return confirm('确认要刷新吗？')" Text="刷新"></asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
 
                    </td>
                </tr>
                <tr>
                    <td colspan="2"  class="pagerstyle">
                       <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_PageChanged"
                    PageSize="15" AlwaysShowFirstLastPageNumber="True" CustomInfoTextAlign="Left"
                    FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" NumericButtonCount="10"
                    PrevPageText="上一页" CssClass="paginator" CurrentPageButtonClass="" CustomInfoHTML="第 %CurrentPageIndex% 页 共 %PageCount%页 %RecordCount%条记录 "
                    LayoutType="Table" ShowCustomInfoSection="Left" ShowNavigationToolTip="True"
                    ShowPageIndexBox="Always" PageIndexBoxType="DropDownList" TextAfterPageIndexBox="&nbsp;页"
                    TextBeforePageIndexBox="转到第">
                </webdiyer:AspNetPager>                    
                    </td>
                </tr>
                <tr>
                    <td colspan="2" class="style4">
                        </td>
                </tr>
                <tr>
                    <td colspan="2">
                     &nbsp;
                             <div style=" margin:0 auto; width:450px;">
                       <asp:Button ID="btnCheck" runat="server" Text="审核" OnClick="btnCheck_Click" OnClientClick="if(havecheck()) return confirm('确认要审核吗？')" CssClass="bgbtn"/>
                <asp:Button ID="btnNOCheck" runat="server" Text="取消审核" OnClick="btnNOCheck_Click" CssClass="bgbtn"
                    OnClientClick="if(havecheck()) return confirm('确认要取消审核吗？')" />
                <asp:Button ID="btnOK" runat="server" Text="成功" OnClick="btnOK_Click" OnClientClick="if(havecheck()) return confirm('确认要成功吗？')"  CssClass="bgbtn"/>
                <asp:Button ID="btnrefreshAdv" runat="server" Text="刷新悬赏" OnClick="btnrefreshAdv_Click" CssClass="bgbtn"
                    OnClientClick="if(havecheck()) return confirm('确认要刷新悬赏吗？')" /></div>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        &nbsp;</td>
                </tr>
            </table>
                
                
               
            </div>
        </div>
    </div>
    </form>
</body>
</html>
